<?php
namespace Index\Controller;
use Think\Controller;
class UController extends Controller {
    public function index(){

    	$id=$_SESSION['uid'];
    	$data=M('user')->find($id);

    	$this->assign('data',$data);

       $this->display();

    }
}
?>